package com.star.message.api.contract.command;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 发送邮件命令
 *
 * @author zhouhengzhe
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class SendEmailCommand {
    /**
     * 租户ID
     */
    @NotBlank(message = "租户ID不能为空")
    private String tenantId;
    /**
     * 语言类型
     */
    @NotBlank(message = "语言类型不能为空")
    private String languageCode;
    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    private String email;
    /**
     * 邮件模板code
     */
    @NotBlank(message = "邮件模板code不能为空")
    private String code;
}
